<?php

class m120302_074829_create_news_table extends CDbMigration {
	const TABLE_NAME = 'tbl_news';
//------------------------------------------------------------------------
	
	public function safeUp(){
			
		$this->createTable( self::TABLE_NAME, array(
			'id' => 'pk',
			'title' => 'string NOT NULL',
			'content' => 'text',
			'author' => 'integer',
			'time_created' => 'timestamp DEFAULT TIMESTAMP \'now\'',

		) );

	}
	

	public function safeDown(){
		$this->dropTable( self::TABLE_NAME );
	}
}
